<template>
  <div>
    <LazyLoadTab v-model="activeName" :tabMenus="menus" @close="closeHandler"></LazyLoadTab>
  </div>
</template>

<script>
export default {
  name: 'DownfeedbackModal',
  props: {
    type: String,
    rowData: {
      type: Object,
      default: () => ({})
    }
  },
  data() {
    return {
      activeName: '基本信息',
      menus: [
        {
          title: '基本信息',
          path: 'customerCare/saleVisit/downfeedback/tabs/downfeedbackBase',
          params: { rowData: this.rowData, type:this.type},
          on: {
            close: this.closeHandler
          }
        },
        {
          title: '接触记录',
          path: 'potenCus/customer/potenCusManage/contactRecord',
          params: { rowData: this.rowData, type:this.type }
        },
        {
          title: '变更历史',
          path: 'potenCus/customer/potenCusManage/changeHistory',
          params: { rowData: this.rowData, type:this.type }
        },
        {
          title: '关联信息',
          path: 'customerCare/saleVisit/downfeedback/tabs/downfeedbackLink',
          params: { rowData: this.rowData, type:this.type }
        }
      ]
    };
  },
  methods: {
    closeHandler(val, type) {
      this.$emit('close', val, type);
    }
  }
};
</script>

<style lang="less" scoped>
</style>
